#include "global.h"
#include "gldraw.h"

int main (int argc,char **argv) {

	glutInit (&argc,argv);
	glutInitDisplayMode (GLUT_RGBA|GLUT_DOUBLE|GLUT_DEPTH);
	glutInitWindowSize (640, 480);
	glutInitWindowPosition (100,100);
	glutCreateWindow ("");

	if (!InitGL ())
		return -1;
	glutDisplayFunc (DrawGL);
	glutReshapeFunc (ResizeGL);
	glutIdleFunc (IdleGL);
	glutKeyboardFunc (KeyPressGL);
	glutMouseFunc (MousePressGL);
	glutMotionFunc (MouseMoveGL);
	glutMainLoop ();

	return 0;
}